<template>
  <div class="big card-effect">
    <el-row :gutter="20" class="no-gutters">
      <el-col :span="24" class="col-center">
        <el-link
          :href="giteeRepoUrl"
          target="_blank"
          rel="noopener noreferrer"
          class="card-link"
        >
          查看Gitee仓库
        </el-link>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { ref } from 'vue';

export default {
  name: 'Gitee',
  setup() {
    const giteeRepoUrl = ref('https://gitee.com/li-xinglian/ui');
    return {
      giteeRepoUrl,
    };
  },
};
</script>

<style scoped>
.big {
  position: relative;
  padding: 1.875rem 2.5rem;
  text-align: center;
  background: linear-gradient(to right, #fbf4fb, #f2cce5);
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 30px;
  z-index: 1;
}

.card-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, rgba(251, 244, 251, 0.9), transparent);
  border-radius: inherit;
  opacity: 0.9;
  z-index: -1;
}

.no-gutters {
  margin-right: 0;
  margin-left: 0;
}

.col-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-link {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding:  0.875rem 1.875rem;
  color: #76ece8;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none !important;
  outline: none;
  backface-visibility: hidden;
}

.card-link:hover,
.card-link:focus {
  background-color: #5fff97;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
html {  
  font-size: 16px; 
}  
  
@media (max-width: 768px) {  
  html {  
    font-size: 14px;  
  }  
}  
  
@media (min-width: 1200px) {  
  html {  
    font-size: 18px;   
  }  
}
</style>
